﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;

namespace iOSClub.CheckInApi.DataModels;

public class SeriesModel
{
    [Key]
    [Column(TypeName = "varchar(64)")]
    public string Key { get; set; } = "";

    [Column(TypeName = "varchar(64)")] public string Name { get; set; } = "";

    [Column(TypeName = "DATE")] public DateTime CreateTime { get; set; } = DateTime.Today;

    [Column(TypeName = "varchar(512)")] public string Content { get; set; } = "";

    [JsonIgnore]
    public List<CheckModel> Checks { get; set; } = [];
    public List<UserModel> Users { get; set; } = [];
}